package com.jvm123.blog.service

import com.jvm123.blog.entity.Post

/**
 *
 * @author yawn http://jvm123.com
 *     2019/10/22 14:52
 */
interface PostService {

    Post findOne(long id)

    List<Post> findByType(String type)

    List<Post> findTop()

    Post findPostWithTags(long id)

    List<Post> findByTag(String tag)

    List<Post> findByCategory(String category)

    List<Post> batch(long offset)

    List<Post> batch(int page, int size)
}
